import React, { useEffect } from 'react'
import axios from 'axios' 
import { Tabs } from 'antd';
import type { TabsProps } from 'antd';

const onChange = (key: string) => {
  console.log(key);
};
function App() {
  const items: TabsProps['items'] = [
    {
      key: '1',
      label: '关注',
      children:'的规定翻跟斗翻跟斗',
    },
    {
      key: '2',
      label: '推荐',
      children: '架构开发贷款的你看看方法',
    },
    {
      key: '3',
      label: '热榜',
      children: '分三个哈哈哈哈哈哈默认是不过巴尔干',
    },
  ];
  
  const getdata=()=>{
    axios.get('/kkk').then(res=>{
      console.log(res);
    })
  } 
  useEffect(()=>{
    getdata()
  },[])
  return (
    <div>
      <Tabs defaultActiveKey="1" type="card"  items={items} onChange={onChange} > 

      </Tabs>
    </div>
  )
}

export default App
